// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * CatalogProductOptionTitle generated by hbm2java
 */
@Entity
@Table(name = "catalog_product_option_title", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"option_id", "store_id" }))
public class CatalogProductOptionTitle implements java.io.Serializable {

	private Integer optionTitleId;
	private CatalogProductOption catalogProductOption;
	private CoreStore coreStore;
	private String title;

	public CatalogProductOptionTitle() {
	}

	public CatalogProductOptionTitle(CatalogProductOption catalogProductOption,
			CoreStore coreStore, String title) {
		this.catalogProductOption = catalogProductOption;
		this.coreStore = coreStore;
		this.title = title;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "option_title_id", unique = true, nullable = false)
	public Integer getOptionTitleId() {
		return this.optionTitleId;
	}

	public void setOptionTitleId(Integer optionTitleId) {
		this.optionTitleId = optionTitleId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "option_id", nullable = false)
	public CatalogProductOption getCatalogProductOption() {
		return this.catalogProductOption;
	}

	public void setCatalogProductOption(
			CatalogProductOption catalogProductOption) {
		this.catalogProductOption = catalogProductOption;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "store_id", nullable = false)
	public CoreStore getCoreStore() {
		return this.coreStore;
	}

	public void setCoreStore(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	@Column(name = "title", nullable = false)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
